/**
 * Created by Administrator on 2017/7/27.
 */
Ext.onReady(function(){
   var button= Ext.create('Ext.Button', {
        renderTo: Ext.getElementById('buttonId'),
        text: 'My Button',
        listeners: {
            click: function() {
                this.hide();
            },
            hide: function() {
                Ext.get('tag1').hide();
            }
        }
    });


    button.on('click', function() {
       // this.show();
    });
});